<img src='partials/TestDataXY_Simple_Series.PNG' style='width:400px;float:right'>
<div>
<pre>
<span class='code_snippet' style='font-size: 11px'>

ArrayList&lt;XYDataSeries&gt; xySeriesList = new ArrayList&lt;XYDataSeries&gt;();

ArrayList&lt;DataPoint&gt; values = new ArrayList&lt;DataPoint&gt;();
values.add(new DataPoint(5, 30));
values.add(new DataPoint(10, 11));
values.add(new DataPoint(15, 14));
values.add(new DataPoint(20, 5));
values.add(new DataPoint(25, 8));

ArrayList&lt;DataPoint&gt; values2 = new ArrayList&lt;DataPoint&gt;();
values2.add(new DataPoint(5, 2));
values2.add(new DataPoint(10, 33));
values2.add(new DataPoint(15, 6));
values2.add(new DataPoint(20, 14));
values2.add(new DataPoint(25, 17));

ArrayList&lt;DataPoint&gt; values3 = new ArrayList&lt;DataPoint&gt;();
values3.add(new DataPoint(5, 130));
values3.add(new DataPoint(10, 74));
values3.add(new DataPoint(15, 67));
values3.add(new DataPoint(20, 22));
values3.add(new DataPoint(25, 68));

ArrayList&lt;DataPoint&gt; values4 = new ArrayList&lt;DataPoint&gt;();
values4.add(new DataPoint(5, 90));
values4.add(new DataPoint(10, 65));
values4.add(new DataPoint(15, 80));
values4.add(new DataPoint(20, 83));
values4.add(new DataPoint(23, 90));

XYDataSeries series = new XYDataSeries(values, "First");
XYDataSeries series2 = new XYDataSeries(values2, "Second");
XYDataSeries series3 = new XYDataSeries(values3, "Third");
XYDataSeries series4 = new XYDataSeries(values4, "Fourth");

XYChart chart = new XYChart("Many Series Example", "My X Axis",
"My Y Axis", series, series2, series3, series4);

</span></pre></div>